	public function delete(){
		${$tableName}Model = D('{$TableName}');
		$id = I('id'); 
		$flag = ${$tableName}Model->where('{$primaryKey}='.$id)->delete();
		if($flag){
			$this->ajaxJson('删除成功', 0);		
		}else{
			$this->ajaxJson('删除失败', 1);		
		}
	}